<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%String path = request.getContextPath();%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tld/sys.tld" prefix="sys" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <c:set var="ctx" value="${pageContext.request.contextPath}"/>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>项目C卡V2结果</title>
    <jsp:include page="../../import.jsp" flush="true"/>
    <input type="hidden" value="${cstId}" name="cstId" id="cstId"/>
    <input type="hidden" value="${batchNo}" name="batchNo" id="batchNo"/>
</head>
<script type="text/javascript">
    var grid = null;
    $(function () {
        var _url = '<%=path%>/riskctrl/ccardv2/searchCcardPrjListPage.do?cstId=${cstId}&batchNo=${batchNo}';
        $("#ligergrid1").ligerGrid({
            url: _url,
            method: 'get',
            columns: [
                {display: '项目ID', name: 'prjId', align: 'left', width: 100},
                {display: '逾期天数', name: 'actOverdueDay', align: 'left', width: 60},
                {display: '支付表号', name: 'actPaySchNo', align: 'left', width: 340},
                {display: '逾期至5日以上20日以下的概率', name: 'model2Result', align: 'left', width: 130},
                {display: '逾期至20日以上30日以下的概率', name: 'model3Result', align: 'left', width: 130},
                {display: '已逾期20日以上的客户逾期至60+的概率', name: 'model4Result', align: 'left', width: 130},
                {display: '批次号', name: 'batchNo', align: 'center', width: 80}
            ],
            pageSize: 10,
            root: 'rows',
            record: 'total',
            hideLoadButton: true,
            width: '100%',
            height: '100%',
            heightDiff: -2,
            checkbox: false,
            rownumbers: true,
            frozen: false,
            allowUnSelectRow: true,
            alternatingRow: false,
            fixedCellHeight: false,
        });
        grid = liger.get("ligergrid1");
        grid.setHeight(100);
    });
    frameElement.dialog.onCancel = function () {
        frameElement.dialog.close();
    }
    function change(id, prdTyp, zx_flag) {
        if(!id)return;
        if (prdTyp == 2) {//重卡城配
            Add_navTab("toTripartitePage"+id, "重卡城配前置征信审批", '<%=path%>/riskctrl/rccstbscinfo/toModifyPage.do?id='+id+'&zx_flag='+zx_flag);
        } else if (prdTyp == 1) {//重卡传统
            Add_navTab("toTripartitePage"+id, "重卡传统前置征信审批", '<%=path%>/riskctrl/rccstbscinfo/toZkAudiPage.do?id='+id+'&zx_flag='+zx_flag);
        } else if (prdTyp == 5) {
            Add_navTab("toTripartitePage"+id, "二手车前置征信审批", '<%=path%>/riskctrl/rccstbscinfo/toEscAudiPage.do?id='+id+'&zx_flag='+zx_flag);
        } else {
            Add_navTab("toTripartitePage"+id, "乘用车前置征信审批", '<%=path%>/riskctrl/rccstbscinfo/toRuleDetailPage.do?id='+id);
        }
    }
    //格式化时间
    function renderDate(rowdata, index, value) {
        var dateStr = "";
        if (null != value) {
            var date = new Date(value);
            dateStr = DateUtils.formatDate(date, DateUtils.YYYY_MM_DDHHMMSS);
        }
        return dateStr;
    }
</script>
<body class="iframeBody">
<div id="ligergrid1" class="sq-grid"></div>
</body>
</html>